<?php 
	require_once 'include/comm.inc.php';
	require_once 'functions.php';
	
	$client_info_sql="SELECT * FROM client_user WHERE `client_user_id`='".$_GET['edit']."'";
	$client_info_return=$db->query($client_info_sql);
	$client_info_return=$db->fetch_array($client_info_return);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE4 {
	font-size: 12px;
	color: #1F4A65;
	font-weight: bold;
}

a:link {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;

}
a:visited {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}
a:hover {
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}
a:active {
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.STYLE7 {font-size: 12}

-->
</style>

<script>
var  highlightcolor='#eafcd5';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
function  changeto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=highlightcolor;
}
}

function  changeback(){
if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
return
if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
//source.style.backgroundColor=originalcolor
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}

function  clickto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=clickcolor&&source.id!="nc")
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=clickcolor;
}
else
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}
</script>
</head>

<body>
<form action="menberEdit.php" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="images/tab_05.gif"><img src="images/311.gif" width="16" height="16" /> <span class="STYLE4">添加客户</span></td>
        <td width="281" background="images/tab_05.gif"><table border="0" align="right" cellpadding="0" cellspacing="0">
            
        </table></td>
        <td width="14"><img src="images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#f3ffe3"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()">
          <tr>
            
            <td class="STYLE1"><div align="center" class="STYLE2 STYLE1">客户名：<input type="text" name="client_user_name" size="100" value="<?=$client_info_return['client_user_name']?>"/></div></td>
          </tr> 
          <tr>
            
            <td class="STYLE1"><div align="center" class="STYLE2 STYLE1">pv量：<input type="text" name="client_user_pv_number" size="100" value="<?=$client_info_return['client_user_pv_number']?>"/></div></td>
          </tr> 
          <tr>
            
            <td class="STYLE1"><div align="center" class="STYLE2 STYLE1">跳转地址：<input type="text" name="client_user_link" size="100" value="<?=$client_info_return['client_user_link']?>"/></div></td>
          </tr> 
          <tr>
           
            <td class="STYLE1"><div align="center" class="STYLE2 STYLE1">起始时间：
            <select name="client_user_date_s">
              <option <?php if ($client_info_return['client_user_date_s']==1){?>selected="selected"<?php }?> value="1">1</option>
              <option <?php if ($client_info_return['client_user_date_s']==2){?>selected="selected"<?php }?> value="2">2</option>
              <option <?php if ($client_info_return['client_user_date_s']==3){?>selected="selected"<?php }?> value="3">3</option>
              <option <?php if ($client_info_return['client_user_date_s']==4){?>selected="selected"<?php }?> value="4">4</option>
              <option <?php if ($client_info_return['client_user_date_s']==5){?>selected="selected"<?php }?> value="5">5</option>
              <option <?php if ($client_info_return['client_user_date_s']==6){?>selected="selected"<?php }?> value="6">6</option>
              <option <?php if ($client_info_return['client_user_date_s']==7){?>selected="selected"<?php }?> value="7">7</option>
              <option <?php if ($client_info_return['client_user_date_s']==8){?>selected="selected"<?php }?> value="8">8</option>
              <option <?php if ($client_info_return['client_user_date_s']==9){?>selected="selected"<?php }?> value="9">9</option>
              <option <?php if ($client_info_return['client_user_date_s']==10){?>selected="selected"<?php }?> value="10">10</option>
              <option <?php if ($client_info_return['client_user_date_s']==11){?>selected="selected"<?php }?> value="11">11</option>
              <option <?php if ($client_info_return['client_user_date_s']==12){?>selected="selected"<?php }?> value="12">12</option>
              <option <?php if ($client_info_return['client_user_date_s']==13){?>selected="selected"<?php }?> value="13">13</option>
              <option <?php if ($client_info_return['client_user_date_s']==14){?>selected="selected"<?php }?> value="14">14</option>
              <option <?php if ($client_info_return['client_user_date_s']==15){?>selected="selected"<?php }?> value="15">15</option>
              <option <?php if ($client_info_return['client_user_date_s']==16){?>selected="selected"<?php }?> value="16">16</option>
              <option <?php if ($client_info_return['client_user_date_s']==17){?>selected="selected"<?php }?> value="17">17</option>
              <option <?php if ($client_info_return['client_user_date_s']==18){?>selected="selected"<?php }?> value="18">18</option>
              <option <?php if ($client_info_return['client_user_date_s']==19){?>selected="selected"<?php }?> value="19">19</option>
              <option <?php if ($client_info_return['client_user_date_s']==20){?>selected="selected"<?php }?> value="20">20</option>
              <option <?php if ($client_info_return['client_user_date_s']==21){?>selected="selected"<?php }?> value="21">21</option>
              <option <?php if ($client_info_return['client_user_date_s']==22){?>selected="selected"<?php }?> value="22">22</option>
              <option <?php if ($client_info_return['client_user_date_s']==23){?>selected="selected"<?php }?> value="23">23</option>
              <option <?php if ($client_info_return['client_user_date_s']==24){?>selected="selected"<?php }?> value="24">24</option>
            </select>
            结束时间：
            <select name="client_user_date_e">
              <option <?php if ($client_info_return['client_user_date_e']==1){?>selected="selected"<?php }?> value="1">1</option>
              <option <?php if ($client_info_return['client_user_date_e']==2){?>selected="selected"<?php }?> value="2">2</option>
              <option <?php if ($client_info_return['client_user_date_e']==3){?>selected="selected"<?php }?> value="3">3</option>
              <option <?php if ($client_info_return['client_user_date_e']==4){?>selected="selected"<?php }?> value="4">4</option>
              <option <?php if ($client_info_return['client_user_date_e']==5){?>selected="selected"<?php }?> value="5">5</option>
              <option <?php if ($client_info_return['client_user_date_e']==6){?>selected="selected"<?php }?> value="6">6</option>
              <option <?php if ($client_info_return['client_user_date_e']==7){?>selected="selected"<?php }?> value="7">7</option>
              <option <?php if ($client_info_return['client_user_date_e']==8){?>selected="selected"<?php }?> value="8">8</option>
              <option <?php if ($client_info_return['client_user_date_e']==9){?>selected="selected"<?php }?> value="9">9</option>
              <option <?php if ($client_info_return['client_user_date_e']==10){?>selected="selected"<?php }?> value="10">10</option>
              <option <?php if ($client_info_return['client_user_date_e']==11){?>selected="selected"<?php }?> value="11">11</option>
              <option <?php if ($client_info_return['client_user_date_e']==12){?>selected="selected"<?php }?> value="12">12</option>
              <option <?php if ($client_info_return['client_user_date_e']==13){?>selected="selected"<?php }?> value="13">13</option>
              <option <?php if ($client_info_return['client_user_date_e']==14){?>selected="selected"<?php }?> value="14">14</option>
              <option <?php if ($client_info_return['client_user_date_e']==15){?>selected="selected"<?php }?> value="15">15</option>
              <option <?php if ($client_info_return['client_user_date_e']==16){?>selected="selected"<?php }?> value="16">16</option>
              <option <?php if ($client_info_return['client_user_date_e']==17){?>selected="selected"<?php }?> value="17">17</option>
              <option <?php if ($client_info_return['client_user_date_e']==18){?>selected="selected"<?php }?> value="18">18</option>
              <option <?php if ($client_info_return['client_user_date_e']==19){?>selected="selected"<?php }?> value="19">19</option>
              <option <?php if ($client_info_return['client_user_date_e']==20){?>selected="selected"<?php }?> value="20">20</option>
              <option <?php if ($client_info_return['client_user_date_e']==21){?>selected="selected"<?php }?> value="21">21</option>
              <option <?php if ($client_info_return['client_user_date_e']==22){?>selected="selected"<?php }?> value="22">22</option>
              <option <?php if ($client_info_return['client_user_date_e']==23){?>selected="selected"<?php }?> value="23">23</option>
              <option <?php if ($client_info_return['client_user_date_e']==24){?>selected="selected"<?php }?> value="24">24</option>
            </select>
            </div></td>
          </tr> 
 
          <tr>
            
            <td class="STYLE1"><div align="center" class="STYLE2 STYLE1">
            <input type="hidden" name="agency_user" value="<?=$client_info_return['agency_user']?>"/>
            <input type="hidden" name="client_user_id" value="<?=$client_info_return['client_user_id']?>"/>
            <input type="hidden" name="client_user_status" value="<?=$client_info_return['client_user_status']?>"/>
            
            <input type="submit" name="submit" value="提交"/></div>
            </td>
          </tr> 

        </table></td>
        <td width="9" background="images/tab_16.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  
  
</table>
</form>
</body>
</html>